<!DOCTYPE >
<html lang="zh-cn">
<head>
	<title>后台管理-功能</title>
    <% include ../partials/head %>
    <script type="text/javascript">
        oTopic={
            operator:function(){
                
            },
            init:function(){
                this.operator();
            }
        }

        $(document).ready(function(){
            oTopic.init();
        })
    </script>

</head>
<body>
	<header>
    <% include ../partials/header %>
  </header>
  <div class="ch-container">
    <div class="row">
      <% include ../partials/sidebar %>
      <!-- 页面内容 -->
      <div id="content" class="col-lg-10 col-sm-10">
        <div class="row">
          <ul class="breadcrumb">
            <li>
                <a href="/admin/topic">专题管理</a>
            </li>
            <li>
                <a href="">新增</a>
            </li>
          </ul>
        </div>

        <% if (typeof errMsg != "undefined") { %>
        <div class="alert alert-danger">
            <button type="button" class="close" data-dismiss="alert">&times;</button>
            <strong><%= errMsg %></strong>
        </div>
        <% } %>

        <div class="row">
          <div class="box col-md-12">
            <div class="box-inner">
              <div class="box-header well" data-original-title="">
                <h2><i class="glyphicon glyphicon-edit"></i> 新增专题 </h2>
              </div>

              <div class="box-content">
                <form role="form" method="post" enctype="multipart/form-data" action="/admin/topic/add">
                  <div class="form-group">
                      <label>标题:</label>
                      <input type="text" name="title" class="form-control" id="titleText" placeholder="输入标题">
                  </div>
                  <div class="form-group">
                      <label>优先级（数字越大，显示越靠前）:</label>
                      <input type="text" name="priority" class="form-control" id="titleText" placeholder="输入优先级">
                  </div>
                  <div class="form-group">
                      <label>专题类型(0普通专题 ，1活动 ，2话题):</label>
                      <input type="text" name="type" class="form-control type_input" id="titleText" placeholder="输入类型">
                  </div> 
                  <div class="form-group address">
                      <label>活动网址（当专题类型为1的时候填写）:</label>
                      <input type="text" name="address" class="form-control" id="titleText" placeholder="输入活动网址">
                  </div>
                  <div class="form-group">
                      <label>标题图片:</label>
                      <input type="file" name="topicImg">
                  </div>

                  <button class="btn btn-success" id="saveTopic" type="submit"><i class="glyphicon glyphicon-shopping-cart"></i>保存</button>
                </form>

                <button class="btn btn-danger" id="ignoreTopic"><i class="glyphicon glyphicon-trash"></i> 放弃</a>

              </div>

            </div>
          </div>
        </div>
      </div>

    </div>

    <% include ../partials/footer %>
  </div>
  <% include ../partials/external %>
</body>
</html>
